<?php
	/**
	 * [Time]
	 * @Author   :seven
	 * @DateTime :2016-08-16T18:34:54+0800
	 * @Detail   :This Class Is The Example
	 */
	namespace Home\Util;
	
	class SendFinishUtil {

    static public function SetData($data){
        $url = $data['url'];
		$openid = $data['openid'];
		$template_id = '4JcxhUSSfLGYvPaU4_X-vKbq0tZlCYog52eW85Vio8M';
		$template = array(
            'touser' => $openid,
            'template_id' => $template_id,
            'url' =>$url,
            'data' => array(
                'first' => array(
                    'value' => '尊敬的用户，你的订单已经完成！',
                    'color' => "#173177"
                ),
                'keyword1' => array(
                    'value' => $data['OID'],
                    'color' => "#173177"
                ),
                'keyword2' => array(
                    'value' => '已完成',
                    'color' => "#173177"
                ),
                'remark' => array(
                    'value' =>'感谢您的试用!',
                    'color' => "#173177"
                )
            )
        );
		$SendMsg =  new \Util\WechatSendMsg('wxa61d5ad1056c9b66','3b3e14ecb756e155b82226dde95a138e');
		$SendMsg ->SendTplMsg(json_encode($template));
    }
}
	?>